/**
	Copyright (c) 2010 ATTi 
	All rights reserved.
	Author: Michael Shu
	Date: 5/25/2010
*/

trigger CaseCommentEmailNotice on CaseComment (before insert) {
	
	Set<ID> caseIDs = new Set<ID>();
	
	for(CaseComment c : trigger.new){
		caseIDs.add(c.ParentId);
	}
   
    if(!caseIDs.isEmpty()){
    	EmailSentFromCaseHelperClass.sendEmailtoCaseOwnerIfDifferent(caseIDs, 'New Case Comment');
    }	
}